home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 526-550 / disk_547 / findname / findname.demo < prev    next >
Text File  |  1992-05-06  |  886b  |  48 lines

  1. .K ""
  2.  
  3. echo "This is a demonstration of FindName"
  4. echo ""
  5.  
  6. ; Find a device
  7.     FindName -d narrator.device
  8.     IF WARN
  9.       echo "The narrator device is not present"
  10.     ENDIF
  11.  
  12. ; Find a library
  13.     FindName -l gadtools.library
  14.     IF WARN
  15.       echo "No gadtools library. We are not runnning under Kickstart 2.x"
  16.     ENDIF
  17.  
  18. ; Find a memory-header
  19.     FindName -m "zkick memory"
  20.     IF NOT WARN
  21.       echo "You used zkick to install Kickstart 2.x"
  22.     ENDIF
  23.  
  24. ; Find a messageport
  25.     FindName -p REXX
  26.     IF NOT WARN
  27.       echo "arexx is running"
  28.     ENDIF
  29.  
  30. ; Find a resource
  31.     FindName -r potgo.resource
  32.     IF NOT WARN
  33.       echo "potgo resource is always present"
  34.     ENDIF
  35.  
  36. ; Find a task
  37.     FindName -t Workbench
  38.     IF NOT WARN
  39.       echo "Jubii, I found the workbench task"
  40.     ENDIF
  41.  
  42. echo ""
  43. echo "All Done.  Click close gadget to get rid of window."
  44.  
  45. EndCli
  46. ; End of script
  47.  
  48.